<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.Order"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>图书列表</title>
</head>
<body>

<h1>图书列表，赶紧加入购物车吧！</h1>
<h2 style="background-color=blue;">当前用户： ${user.uname}</h2>
<table>
	<c:forEach items="${books}" var="a">
		<tr>
		 <td><img style="width:80px;height:80px;" src="${a.img}"></td>
		 <td>${a.bname}</td>
		  <td><a href="sec/ShoppingCartServlet?bid=${a.bid}&bname=${a.bname}">加入购物车</a></td>
		</tr>
	</c:forEach>
</table>
</body>
</html>